/***************************************************************************
 *   Copyright (C) 2009 by maarten,,,   *
 *   maarten@maarten-laptop   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef SCENESCENE_H
#define SCENESCENE_H

#include "scenemanager/sceneelement.h"
#include <QColor>
#include <QVector>

namespace draw{
  class FloatMatrix;
};
namespace scene {

class Camera;
class PointLight;
class SubScene;

/**
	@author maarten,,, <maarten@maarten-laptop>
*/
class Scene : public SceneElement
{
public:
    Scene(Camera *camera, QVector<SceneElement*> *lights, QColor bgColor, int
aa);
    ~Scene();

    Camera* cam() const{return m_cam;}
    SceneElement* light(int id) const{return m_lights->at(id);}
    int getNrOfLights(){return m_lights->size();}
    void printElement();
    QColor bgColor() const{return m_bgColor;}
    
    int getSize(){return m_subScenes.size();}
    void addSubScene(SubScene* val){m_subScenes.push_back(val);}
    SubScene* getSubScene(int id){return m_subScenes[id];}
    
    int antiAliasing(){return m_antiAliasing;}
   
private:
    Camera * m_cam;
    QVector<SceneElement*> *m_lights;
    QColor m_bgColor;
    
    draw::FloatMatrix *m_currentTransform; 
    QVector<SubScene*> m_subScenes;
    int m_antiAliasing; 


};

}

#endif
